<!-- 体征里2级路由呼吸页面 -->
<template>
  <div id="SignBreathe">
    <div class="link-list center-block">
      <router-link
        v-for="(item,index) in list"
        :key="item.value"
        :to="{path:item.path,query:{item:5,in:2,ind:index}}"
        :class="{'router-link-exact-active':ind == index}"
        @click.native="changeBgc(index)"
      >{{item.label}}</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        {
          path: "/physicalSignPage/signsBreathe/signsBreatheSubSurface",
          label: "呼吸-时间轴"
        },
        {
          path: "/physicalSignPage/signsBreathe/signsBreatheSubChart",
          label: "呼吸-趋势图"
        }
      ],
      ind: "0"
    };
  },
  created() {},
  mounted() {
    if (this.$route.query.ind) {
      this.ind = this.$route.query.ind;
    } else {
      this.ind = 0;
    }
  },
  methods: {
    changeBgc(index) {
      this.ind = index;
    }
  }
};
</script>
<style scoped>
.link-list {
  position: absolute;
  top: 25px;
  left: 500px;
  height: 30px;
  line-height: 30px;
  margin-bottom: 20px;
  padding-left: 45px;
  white-space: nowrap;
}

.link-list a {
  font-size: 16px;
  display: inline-block;
  margin-right: 15px;
  color: #666;
}

.link-list a:after {
  display: inline-block;
  content: "";
  width: 1px;
  height: 20px;
  background-color: #ccc;
  margin-left: 10px;
  vertical-align: middle;
}

.link-list a:last-child:after {
  width: 0;
}

.link-list a.router-link-exact-active {
  color: #11a7f3;
}
@media screen and (max-width: 768px) {
  .link-list {
    position: initial;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 15px;
  }
}
@media screen and (max-width: 425px) {
}
</style>
